@dashincubator/ripemd160
Fully browser-compatible ripemd160
for JavaScript.
Works just like the other node crypto APIs.
Install
Browser:
<script src="https://unpkg.com/@dashincubator/ripemd160/ripemd160.js"></script>
let RIPEMD160 = window.RIPEMD160;
Node:
npm install --save @dashincubator/ripemd160@2
let RIPEMD160 = require("@dashincubator/ripemd160");
Example
let hash = RIPEMD160.create();
hash.update("42");
let hex = hash.digest("hex");
console.log(hex);
History
This fork is for the purpose of making the package <script>
-tag compatible for
plain, old browser JavaScript (but not incompatible with node or bundlers)
License & Copyright
MIT
Copyright (c) 2022 AJ ONeal & Dash Incubator
Copyright (c) 2022 Rod Vagg
Copyright (c) 2016 crypto-browserify